package com.qsl.ssyx.client.search;

import com.qsl.ssyx.model.search.SkuEs;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "service-search")
public interface SkuFeignClient {

    @ApiOperation("获取10件爆款商品（热销好货）")
    @GetMapping("api/search/sku/inner/findHotSkuList")
    List<SkuEs> findHotSkuList();


    @ApiOperation("根据skuId更新ES索引库的商品热度信息")
    @GetMapping("/api/search/sku/inerSkuHotScore/{skuId}")
    void inerSkuHotScore(@ApiParam(value = "商品id", required = true) @PathVariable Long skuId);
}
